-- https://github.com/theHamsta/nvim-dap-virtual-text
local has_virtual_text, virtual_text = pcall(require, "nvim-dap-virtual-text")
if not has_virtual_text then
  vim.notify("nvim-dap-virtual-text not found!")
  return
end

virtual_text.setup {
  enabled = true,                     -- enable this plugin (the default)
  enabled_commands = true,            -- create commands DapVirtualTextEnable, DapVirtualTextDisable, DapVirtualTextToggle, (DapVirtualTextForceRefresh for refreshing when debug adapter did not notify its termination)
  highlight_changed_variables = true, -- highlight changed values with NvimDapVirtualTextChanged, else always NvimDapVirtualText
  highlight_new_as_changed = true,    -- highlight new variables in the same way as changed variables (if highlight_changed_variables)
  show_stop_reason = true,            -- show stop reason when stopped for exceptions
  commented = false,                  -- prefix virtual text with comment string
  -- experimental features:
  virt_text_pos = 'eol',              -- position of virtual text, see `:h nvim_buf_set_extmark()`
  all_frames = false,                 -- show virtual text for all stack frames not only current. Only works for debugpy on my machine.
  virt_lines = false,                 -- show virtual lines instead of virtual text (will flicker!)
  virt_text_win_col = nil             -- position the virtual text at a fixed window column (starting from the first text column) ,
  -- e.g. 80 to position at column 80, see `:h nvim_buf_set_extmark()`
}
